﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<Project>>" %>
<%@ Import Namespace="SDT.Model" %>
<%@ Import Namespace="SDT.Site.ViewModels" %>
<div class="bor_cor" style="margin-bottom: 5px;">
    <div class="bar_org<%= ViewData["classCss"] %> module-title_order" align="center">
        <span class="module-title module-title_order"><%= ViewData["title"]%></span>
    </div>
    <div class="module_content_order">
        <div id="product-order" class="project-search">
            <%if (Model != null && Model.Count() > 0)
              {
                  foreach (var p in Model)
                  {
            %>
            <div class="pad" style="text-align: center;">
                <img src="<%=!string.IsNullOrEmpty(p.ImagePath) ? string.Format("{0}{1}", ViewData["ProjectRootUrl"].ToString(), "" + p.ID + "_" + p.ImagePath) : "Images/image-temp/logo_ftc.jpg" %>"
                    alt="<%= p.Title %>" class="bor_img" width="146" height="110">
                <br />
                <p style="margin-top: 2px; font-weight: bold; color: #147AC5; text-align: center;">
                    <%= p.Title %></p>
            </div>
            <%  %>
            <%}
            }%>
        </div>
    </div>
    <div class="clear">
    </div>
</div>
